import service from "@/utils/request";

export function useDriverInsertApi(data: any){
    return service.post("/slag-truck/driver", data)
}
export function useDriverUpdateApi(data: any){
    return service.put("/slag-truck/driver", data)
}
export function useGetDriverInfoApi(id: string){
    return service.get("/slag-truck/driver/" + id)
}
export function useGetFleetListApi(){
    return service.get("/slag-truck/driver/select/fleet")
}
export function useResetPasswordApi(id: string){
    return service.get("/slag-truck/driver/reset-password", {
        params: {
            id: id
        }
    })
}
export function useRemoveDriverApi(id: string){
    return service.delete("/slag-truck/driver/" + id)
}
export function useDriverAuthenticationApi(data: any){
    return service.post("/slag-truck/driver/audited", data)
}
export function useGetDriverListApi(){
    return service.get("/slag-truck/driver/select")
}
